CentOS 7
Sponsored Link

VNC Client : noVNC
2015/08/05
 
Install noVNC which is a VNC Client tool to connect to VNC server via Web Browser.
[1] Install some packages and create SSL certificates.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install novnc python-websockify numpy
[root@dlp ~]#
cd /etc/pki/tls/certs

[root@dlp certs]#
openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/pki/tls/certs/novnc.pem -out /etc/pki/tls/certs/novnc.pem -days 365

Generating a 2048 bit RSA private key
..........................................+++
..........................................+++
writing new private key to '/etc/pki/tls/certs/novnc.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
JP
# country

State or Province Name (full name) [Some-State]:
Hiroshima
 
# state

Locality Name (eg, city) []:
Hiroshima
# city

Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Server World
 
# company

Organizational Unit Name (eg, section) []:
IT Solution
 
# department

Common Name (eg, YOUR name) []:
dlp.srv.world
 
# server's FQDN

Email Address []:
xxx@srv.world
# admin email
[2]
Start VNC Server, refer to here (section [1]).
This example is based on that "cent" user runs VNC server with 5901 port.
[3] Start Websockify with the user who runs VNC server and proxying localhost:5901 on port 6080.
[cent@dlp ~]$
websockify -D --web=/usr/share/novnc/ --cert=/etc/pki/tls/certs/novnc.pem 6080 localhost:5901

WebSocket server settings:
  - Listen on :6080
  - Flash security policy server
  - Web server. Web root: /usr/share/novnc
  - SSL/TLS support
  - Backgrounding (daemon)
[4] Access to the "http://(server's hostname or IP address):6080/" from a client with web browser, then noVNC form is displayed like follows, Login with VNC password.
[5] Just connected. It's possible to operate CentOS on Web browser.
 
Tweet